By default, N4 will allow you to load containers onto a vessel without a VGM. To prevent loads without VGMs, first you create a Permission for Unit Loads, and then you create a Service Business Rule that will apply the Permission to packed Exports that don't have VGMs. In effect, the permission requires that a packed export (with Freight Kind of FCL or LCL) must have a VGM value before it is permitted to load.
With the Configuration mode selected, select Services Holds/Permissions.
Click Add.
Create a Hold/Permission Type set as follows:
Id = UNIT_VGM_LOAD_PERMISSION
Applies To = Unit
Type = Permission
With Configuration mode still selected, select Services Service Business Rules.
Click Add.
Name your business rule something like VGM_VESSEL_LOAD_PERMISSION.
For the Target Service Event Type, select UNIT_LOAD.
For Rule Type, select Simple Permission (Service Event requires Permission).
For Hold/Permission, select the UNIT_LOAD_PERMISSION permission you just created.
Under Filter Criteria:
Select VGM Weight as the entity
Set operator as "is undefined (null)"
Click Add Criterion.
Add Freight Kind as the entity
Set the operator as "is one of (in)"
To the right, click Set..., then select FCL, LCL.
Click Save to save the business rule. Now when you try to load a container without a VGM, the following Permission will be applied against the unit.
A separate permission is not required to allow containers to load once VGM has a value. N4 releases the permission when you provide the VGM value.